package com.example.kehoobackend.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "question",autoResultMap = true)
public class Question {

    //问题ID
    @TableId(value = "question_id",type = IdType.AUTO)
    private Integer question_id;

    //问题标题
    private String question_title;

    //问题内容
    private String question_content;

    @TableField(exist = false)
    //问题关注数
    private Integer followed_count;

    //问题赞同（好问题）数
    private Integer liked_count;

    //问题提出时间
    private String create_time;

    //提出问题的用户ID
    private Integer user_id;

    //是否点赞
    @TableField(exist = false)
    private boolean is_liked;



}
